﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class adminstrator_findStuResult1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
            bind();
       
    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        bind();
    }
    public void bind()
    {
       
        string mysql = Request.QueryString["mysql"];
        DataSet myds = new DataSet();
        myds = mydb.ExecuteQuery(mysql,"score");
        GridView1.DataSource=myds.Tables["score"];
        GridView1.DataKeyNames = new String[] { "sno"};
        GridView1.DataBind();
    
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/dispinfo.aspx?info=学生成绩查询完毕！");
    }
}